package com.miao.websecurity.entity;

import java.util.List;

/**
 * @author MiaoWenqing
 * @description: TODO
 * @date 2021/1/16 19:40
 */
public class TokenAdmin {

    //管理员id
    private Integer adminId;
    //管理员角色列表
    private List<String> roles;

    public TokenAdmin(Integer adminId, List<String> roles) {
        this.adminId = adminId;
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "TokenAdmin{" +
                "adminId=" + adminId +
                ", roles=" + roles +
                '}';
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public TokenAdmin() {
    }
}
